From: Gianfranco Costamagna Date: Sun, 13 Mar 2022 04:27:41 +0000 (+0000) Subject: fix tautological enum compare warnings when built with clang 9 X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~4^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b6201bd4a3cd5d9a2a048f6c3e8d1ab190b17acf;p=wine.git fix tautological enum compare warnings when built with clang 9 Forwarded: pending Last-Update: 2019-12-31 Gbp-Pq: Topic arm64 Gbp-Pq: Name tautological-compare.patch --- diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index e5a709f..9b5e35c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -6943,8 +6943,8 @@ GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace GpCoordinateSpace src_space, GpPointF *points, INT count) { if(!graphics || !points || count <= 0 || - dst_space < 0 || dst_space > CoordinateSpaceDevice || - src_space < 0 || src_space > CoordinateSpaceDevice) + dst_space > CoordinateSpaceDevice || + src_space > CoordinateSpaceDevice) return InvalidParameter; if(graphics->busy)